
====== What's new in version 1.0.4.6: ======

- Fixed some bugs in "FTPRecursivelyDeleteDirectory". (Now can Recursively Delete Directory with all SubFolders and SubFiles)

=====================================================================================================================

"FTPCityToolkit" created by C# & Net Framework 2.0 programs as a plugin for use in NSIS. It design for facility to use of FTP.
User manual of this plugin:
1- Delete directory by use of "FTPRecursivelyDeleteDirectory" method. (Delete directory with subdirectories and subfiles inside that.)
2- Make a directory by use of "FTPRecursivelyMakeDirectory" method. (Make directory with Set subdirectories in one command.)


Method of sending parameters for plugin use in last version:

1) Delete directory by use of "FTPRecursivelyDeleteDirectory" method. (Delete directories with subdirectories and subfiles inside that in one command.)

A)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRecursivelyDeleteDirectory" 4 "FtpAddress" "DirectoryPatch/DirectoryName_YOU_WANT_DELETE_THAT" "FtpUsername" "FtpPassword"

The FTP address ("FtpAddress") in above example must use without (FTP://),(http://),(https://) in first.
The directory that you want delete in FTP, is mentioned in above example as "DirectoryPatch/DirectoryName_YOU_WANT_DELETE_THAT"
In above command "directory DirectoryName_YOU_WANT_DELETE_THAT" that is the last directory we write in the address, will be delete with all subdirectories and subfiles.
"DirectoryPatch" just is patch of directory "DirectoryName_YOU_WANT_DELETE_THAT" in FTP.
Enter FTP username instead of "FtpUsername" in above example. 
Enter FTP password instead of "FtpPassword" in above example. 

B)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRecursivelyDeleteDirectory" 4 "FtpAddress" "directory DirectoryName_YOU_WANT_DELETE_THAT" "FtpUsername" "FtpPassword"

If that directory which you want Delete is not in other subdirectory; you should write it without prefix and only write "FOLDER DirectoryName_YOU_WANT_DELETE_THAT".

CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRecursivelyDeleteDirectory" 4 "FtpAddress" "DirectoryName_YOU_WANT_DELETE_THAT" "FtpUsername" "FtpPassword"

=====================================================================================================================

2)	Make a directory by use of "FTPRecursivelyMakeDirectory" method. (make directory and subdirectory in one command.)

A)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRecursivelyMakeDirectory" 4 "FtpAddress" "Files/Create directory1/Create directory2/Create directory3" "FtpUsername" "FtpPassword"

The FTP address ("FtpAddress") in above example must use without (FTP://),(http://),(https://) in first.
The directory that you want make in FTP, is mentioned in above example as "Files/Create directory1/Create directory2/Create directory3"
In this example there is a directory in FTP that name is "Files". "Create directory1" will create in that (Files), then "Create directory2" will create in "Create directory1".(As the same way for "Create directory3")
Enter FTP username instead of "FtpUsername" in above example. 
Enter FTP password instead of "FtpPassword" in above example. 

B)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRecursivelyMakeDirectory" 4 "FtpAddress" "Create directory A/Create directory B/Create directory C" "FtpUsername" "FtpPassword"

At first step in this example a directory ("Create directory A") will be made. Then another directory will made in that directory, which name is "Create directory B ". As the same way for "Create directory C".

C)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRecursivelyMakeDirectory" 4 "FtpAddress" "Create My directory" "FtpUsername" "FtpPassword"

In this example a directory will be made in FTP address. That name is "Create My directory".

=====================================================================================================================

3)	Rename a directory by use of "FTPRenameDirectory" method.

A)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRenameDirectory" 5 "FtpAddress" "DirectoryPatch/DirectoryName" "DirectoryNewName" "FtpUsername" "FtpPassword"

The FTP address ("FtpAddress") in above example must use without (FTP://),(http://),(https://) in first.
The directory that you want renaming in FTP, is mentioned in above example as "DirectoryName",this directory is inside patch "DirectoryPatch"
The directory that you want changing name to that in FTP, is mentioned in above example as "directoryNewName"
In this example there is a directory in FTP in patch "DirectoryPatch" that name is "DirectoryName" renamed to "directoryNewName"
Enter FTP username instead of "FtpUsername" in above example. 
Enter FTP password instead of "FtpPassword" in above example. 

B)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPRenameDirectory" 5 "FtpAddress" "DirectoryName" "DirectoryNewName" "FtpUsername" "FtpPassword"

The FTP address ("FtpAddress") in above example must use without (FTP://),(http://),(https://) in first.
The directory that you want renaming in FTP, is mentioned in above example as "DirectoryName"
The directory that you want changing name to that in FTP, is mentioned in above example as "directoryNewName"
In this example there is a directory in FTP that name is "DirectoryName" renamed to "directoryNewName"
Enter FTP username instead of "FtpUsername" in above example. 
Enter FTP password instead of "FtpPassword" in above example. 

=====================================================================================================================

=====================================================================================================================

4)	Check a directory is exist on ftp by use of "FTPExistDirectory" method.

A)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPExistDirectory" 4 "FtpAddress" "DirectoryPatch/DirectoryName" "FtpUsername" "FtpPassword"

The FTP address ("FtpAddress") in above example must use without (FTP://),(http://),(https://) in first.
The directory that you want checking exist in FTP, is mentioned in above example as "DirectoryName",this directory is inside patch "DirectoryPatch"
In this example there is a directory in FTP in patch "DirectoryPatch" that name is "DirectoryName" checking to exist or not exist.
Enter FTP username instead of "FtpUsername" in above example. 
Enter FTP password instead of "FtpPassword" in above example. 

B)
CLR::Call /NOUNLOAD "FTPCityToolkit.dll" "FTPCityToolkit.FTPCityToolkitClass" "FTPExistDirectory" 4 "FtpAddress" "DirectoryName" "DirectoryNewName" "FtpUsername" "FtpPassword"

The FTP address ("FtpAddress") in above example must use without (FTP://),(http://),(https://) in first.
The directory that you want checking exist in FTP, is mentioned in above example as "DirectoryName"
In this example there is a directory in FTP that name is "DirectoryName" checking to exist or not exist.
Enter FTP username instead of "FtpUsername" in above example. 
Enter FTP password instead of "FtpPassword" in above example. 
=====================================================================================================================

Ask your question in NSIS forum (about FTPCityToolkit) in the link below.
http://forums.winamp.com/showthread.php?t=454343
Also you can ask your question directly by:
Email (r2du.soft@gmail.com)
Telegram ID (R_khademii)
Best Regards
